import 'package:json_annotation/json_annotation.dart';
import 'active_model.dart';
import 'note_model.dart';
part 'active_big_model.g.dart';

/// 列表模型数组
class ActiveBigModelList {
  List<ActiveBigModel> list;
  ActiveBigModelList(this.list);
  factory ActiveBigModelList.fromJson(List<dynamic> list) {
    return ActiveBigModelList(
      list.map((item) => ActiveBigModel.fromJson(item)).toList(),
    );
  }
}

@JsonSerializable()
class ActiveBigModel {
  /// 活动model
  ActiveModel? activity;
  /// 笔记model
  NoteModel? note;
  /// 类型
  int? type;
  String? jumpUrl;

  ActiveBigModel(this.activity,this.note,this.type,this.jumpUrl);
  factory ActiveBigModel.fromJson(Map<String,dynamic> json) => _$ActiveBigModelFromJson(json);
  Map<String, dynamic> toJson() => _$ActiveBigModelToJson(this);

}

